package com.tqjc.common.faulthandle.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.tqjc.system.core.annotation.QueryField;
import com.tqjc.system.core.model.QueryCondition;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * @projectName: BaotouSteel
 * @className: FaultRecord
 * @author: Patienyon
 * @description: 故障存储实体
 * @date: 2023-07-04 15:33
 */
@TableName("fault_record")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FaultRecord extends Model {
    //每斗ID
    @TableId(value = "id", type = IdType.AUTO)
    int id;

    //天车id
    @TableField("crane_type")
    @QueryField(queryColumn="crane_type", condition= QueryCondition.eq)
    String craneType;

    //故障类型
    @TableField("fault_type")
    @QueryField(queryColumn="fault_type", condition= QueryCondition.like)
    String faultType;

    //工作模式
    @TableField("work_mode")
    @QueryField(queryColumn="work_mode", condition= QueryCondition.eq)
    String workMode;



    //结束时间
    @TableField("meet_time")
    @QueryField(queryColumn="meet_time", condition=QueryCondition.range)
    LocalDateTime meetTime;


    @TableField("addition_info")
    String additionInfo;
}

